document.write("<table>");
for(i=1; i<=9;i++){
    document.write("<tr>");
    for(k=1;k<=i;k++){
        document.write("<td>");
        document.write(k+"*"+i+"="+k*i);
        document.write("</td>");
    }
    document.write("</tr>");
}
